import type { App } from 'vue';
import 'xe-utils'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
import VXETablePluginAntd from 'vxe-table-plugin-antd'
import 'vxe-table-plugin-antd/dist/style.css'
import { i18n } from "@/locales";

VXETable.setup({
  // @ts-ignore
  i18n: (key,args) => i18n.global.t(key,args)
})

VXETable.use(VXETablePluginAntd)

export function setupVxeTable(app: App<Element>) {
  app.use(VXETable)
}
